package com.ljxt.dt.dao.storemanagementdao.impl;

import com.ljxt.dt.dao.storemanagementdao.IsDeleteDao;
import com.ljxt.dt.util.DaoUtil;

/**
 * @author 唐春劲
 * @version 1.0.0
 * @date 2020-05-21 10:11
 * @copyright 老九学堂
 */

public class IsDeleteDaoImpl implements IsDeleteDao {
    @Override
    public int findPurchaseInfo(Integer id) {
        return DaoUtil.querySelectCount("select count(*) from purchase_detail where goods_id = ?",id);
    }

    @Override
    public int findRepectInfo(Integer id) {
        return DaoUtil.querySelectCount("select count(*) from recept_detail where goods_id = ?",id);
    }

    @Override
    public int findStock(Integer id) {
        return DaoUtil.querySelectCount("select count(*) from stock where goods_id = ?",id);
    }
}
